class Index extends eui.Component {
    private Button1:eui.Image
    private Button2:eui.Image
    private AniTime = 2000
    private _video:egret.Video
    constructor () {
        super()
        this.addEventListener(eui.UIEvent.COMPLETE, this.initUi, this)
        this.skinName = "resource/exml/index.exml"
    }
    public initUi() {
        Sk_config.autoScreen(this)
        Sk_animate.scale(this.Button1, this.AniTime)
        Sk_animate.scale(this.Button2, this.AniTime)
        this._video = new egret.Video();
        this._video.x = 100;
        this._video.y = 200;
        this._video.width = 427;
        this._video.height = 240;
        this._video.fullscreen = false;
        // this._video.poster = this._video.fullscreen ? "resource/assets/posterfullscreen.jpg" : "resource/assets/posterinline.jpg";
        this._video.load("resource/assets/video1.mp4");
        this.addChild(this._video);

        this._video.addEventListener(egret.Event.COMPLETE, function (e) {
        }, this);
    }
}